home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-03-28 | 2.0 KB | 81 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="6"
- "COUNT"="5"
- "UIPATH"="Internet\Internet Explorer\Appearance"
- "NAME"="Appearance Options #1"
- "LANGUAGE"="VBScript"
- "VERSION"="1.03"
- "TEXT 1"="Show "File->Open" command"
- "TEXT 2"="Show "File->New" command"
- "TEXT 3"="Show "File->Save/Save as" command"
- "TEXT 4"="Show "View->Options" command"
- "TEXT 5"="Show "Edit->Find" command"
- "DESCRIPTION 1"="Some appearance settings of Internet Explorer you might consider changing."
- "DESCRIPTION 2"=""
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
-
-
- 'All DW
- sV1="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoFileOpen"
- sV2="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoFileNew"
- sV3="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserSaveAs"
- sV4="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoBrowserOptions"
- sV5="HKCU\Software\Policies\Microsoft\Internet Explorer\Restrictions\NoFindFiles"
-
-
- 'Called when the Plugin is started
- SUB Plugin_Initialize
- Call Rd(1,sV1)
- Call Rd(2,sV2)
- Call Rd(3,sV3)
- Call Rd(4,sV4)
- Call Rd(5,sV5)
- END SUB
-
- 'Called when the Plugin should validate the Data the user has entered
- SUB Plugin_CheckData(ElementIndex)
- END SUB
-
- 'Called when the Plugin should apply the changes
- SUB Plugin_Apply(ElementIndex,ElementSubIndex)
- Call Wrt(1,sV1)
- Call Wrt(2,sV2)
- Call Wrt(3,sV3)
- Call Wrt(4,sV4)
- Call Wrt(5,sV5)
- END SUB
-
- Sub Wrt(ITM,VAL)
- b=GetUIElement(ITM)
- if b=false then
- Call RegWriteValue(VAL,1,2)
- Call Restart()
- else
- s=RegReadValue(VAL)
- if IsEmpty(s)=false then
- Call RegDeleteValue(VAL)
- Call Restart()
- end if
- end if
- end sub
-
- Sub Rd(ITM,VAL)
- i=RegReadValue(VAL)
- if IsEmpty(i) then
- SetUIElement ITM,true
- else
- if i<>1 then
- SetUIElement ITM,true
- end if
- end if
- end sub
-
-
- 'Called when the Plugin is about to be removed from memory
- SUB Plugin_Terminate
- END SUB
-
-